package com.fujitsu.nanjing.tieba.ibator;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CoreArchiveReplyCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer mysqlOffset;

    private Integer mysqlLength;

    public CoreArchiveReplyCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    protected CoreArchiveReplyCriteria(CoreArchiveReplyCriteria example) {
        this.orderByClause = example.orderByClause;
        this.oredCriteria = example.oredCriteria;
        this.distinct = example.distinct;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setMysqlOffset(Integer mysqlOffset) {
        this.mysqlOffset = mysqlOffset;
    }

    public Integer getMysqlOffset() {
        return mysqlOffset;
    }

    public void setMysqlLength(Integer mysqlLength) {
        this.mysqlLength = mysqlLength;
    }

    public Integer getMysqlLength() {
        return mysqlLength;
    }

    protected abstract static class GeneratedCriteria {
        protected List<String> criteriaWithoutValue;

        protected List<Map<String, Object>> criteriaWithSingleValue;

        protected List<Map<String, Object>> criteriaWithListValue;

        protected List<Map<String, Object>> criteriaWithBetweenValue;

        protected GeneratedCriteria() {
            super();
            criteriaWithoutValue = new ArrayList<String>();
            criteriaWithSingleValue = new ArrayList<Map<String, Object>>();
            criteriaWithListValue = new ArrayList<Map<String, Object>>();
            criteriaWithBetweenValue = new ArrayList<Map<String, Object>>();
        }

        public boolean isValid() {
            return criteriaWithoutValue.size() > 0
                || criteriaWithSingleValue.size() > 0
                || criteriaWithListValue.size() > 0
                || criteriaWithBetweenValue.size() > 0;
        }

        public List<String> getCriteriaWithoutValue() {
            return criteriaWithoutValue;
        }

        public void setCriteriaWithoutValue(List<String> criteriaWithoutValue) {
            this.criteriaWithoutValue = criteriaWithoutValue;
        }

        public List<Map<String, Object>> getCriteriaWithSingleValue() {
            return criteriaWithSingleValue;
        }

        public void setCriteriaWithSingleValue(List<Map<String, Object>> criteriaWithSingleValue) {
            this.criteriaWithSingleValue = criteriaWithSingleValue;
        }

        public List<Map<String, Object>> getCriteriaWithListValue() {
            return criteriaWithListValue;
        }

        public void setCriteriaWithListValue(List<Map<String, Object>> criteriaWithListValue) {
            this.criteriaWithListValue = criteriaWithListValue;
        }

        public List<Map<String, Object>> getCriteriaWithBetweenValue() {
            return criteriaWithBetweenValue;
        }

        public void setCriteriaWithBetweenValue(List<Map<String, Object>> criteriaWithBetweenValue) {
            this.criteriaWithBetweenValue = criteriaWithBetweenValue;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteriaWithoutValue.add(condition);
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("value", value);
            criteriaWithSingleValue.add(map);
        }

        protected void addCriterion(String condition, List<? extends Object> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("values", values);
            criteriaWithListValue.add(map);
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            List<Object> list = new ArrayList<Object>();
            list.add(value1);
            list.add(value2);
            Map<String, Object> map = new HashMap<String, Object>();
            map.put("condition", condition);
            map.put("values", list);
            criteriaWithBetweenValue.add(map);
        }

        public Criteria andReplyidIsNull() {
            addCriterion("replyID is null");
            return (Criteria) this;
        }

        public Criteria andReplyidIsNotNull() {
            addCriterion("replyID is not null");
            return (Criteria) this;
        }

        public Criteria andReplyidEqualTo(Integer value) {
            addCriterion("replyID =", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotEqualTo(Integer value) {
            addCriterion("replyID <>", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidGreaterThan(Integer value) {
            addCriterion("replyID >", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidGreaterThanOrEqualTo(Integer value) {
            addCriterion("replyID >=", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidLessThan(Integer value) {
            addCriterion("replyID <", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidLessThanOrEqualTo(Integer value) {
            addCriterion("replyID <=", value, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidIn(List<Integer> values) {
            addCriterion("replyID in", values, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotIn(List<Integer> values) {
            addCriterion("replyID not in", values, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidBetween(Integer value1, Integer value2) {
            addCriterion("replyID between", value1, value2, "replyid");
            return (Criteria) this;
        }

        public Criteria andReplyidNotBetween(Integer value1, Integer value2) {
            addCriterion("replyID not between", value1, value2, "replyid");
            return (Criteria) this;
        }

        public Criteria andTopicidIsNull() {
            addCriterion("topicID is null");
            return (Criteria) this;
        }

        public Criteria andTopicidIsNotNull() {
            addCriterion("topicID is not null");
            return (Criteria) this;
        }

        public Criteria andTopicidEqualTo(Integer value) {
            addCriterion("topicID =", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidNotEqualTo(Integer value) {
            addCriterion("topicID <>", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidGreaterThan(Integer value) {
            addCriterion("topicID >", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidGreaterThanOrEqualTo(Integer value) {
            addCriterion("topicID >=", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidLessThan(Integer value) {
            addCriterion("topicID <", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidLessThanOrEqualTo(Integer value) {
            addCriterion("topicID <=", value, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidIn(List<Integer> values) {
            addCriterion("topicID in", values, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidNotIn(List<Integer> values) {
            addCriterion("topicID not in", values, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidBetween(Integer value1, Integer value2) {
            addCriterion("topicID between", value1, value2, "topicid");
            return (Criteria) this;
        }

        public Criteria andTopicidNotBetween(Integer value1, Integer value2) {
            addCriterion("topicID not between", value1, value2, "topicid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("userID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("userID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(String value) {
            addCriterion("userID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(String value) {
            addCriterion("userID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(String value) {
            addCriterion("userID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(String value) {
            addCriterion("userID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(String value) {
            addCriterion("userID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(String value) {
            addCriterion("userID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLike(String value) {
            addCriterion("userID like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotLike(String value) {
            addCriterion("userID not like", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<String> values) {
            addCriterion("userID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<String> values) {
            addCriterion("userID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(String value1, String value2) {
            addCriterion("userID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(String value1, String value2) {
            addCriterion("userID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andRemoteipIsNull() {
            addCriterion("remoteIP is null");
            return (Criteria) this;
        }

        public Criteria andRemoteipIsNotNull() {
            addCriterion("remoteIP is not null");
            return (Criteria) this;
        }

        public Criteria andRemoteipEqualTo(String value) {
            addCriterion("remoteIP =", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipNotEqualTo(String value) {
            addCriterion("remoteIP <>", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipGreaterThan(String value) {
            addCriterion("remoteIP >", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipGreaterThanOrEqualTo(String value) {
            addCriterion("remoteIP >=", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipLessThan(String value) {
            addCriterion("remoteIP <", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipLessThanOrEqualTo(String value) {
            addCriterion("remoteIP <=", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipLike(String value) {
            addCriterion("remoteIP like", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipNotLike(String value) {
            addCriterion("remoteIP not like", value, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipIn(List<String> values) {
            addCriterion("remoteIP in", values, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipNotIn(List<String> values) {
            addCriterion("remoteIP not in", values, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipBetween(String value1, String value2) {
            addCriterion("remoteIP between", value1, value2, "remoteip");
            return (Criteria) this;
        }

        public Criteria andRemoteipNotBetween(String value1, String value2) {
            addCriterion("remoteIP not between", value1, value2, "remoteip");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andAttachesIsNull() {
            addCriterion("attaches is null");
            return (Criteria) this;
        }

        public Criteria andAttachesIsNotNull() {
            addCriterion("attaches is not null");
            return (Criteria) this;
        }

        public Criteria andAttachesEqualTo(Byte value) {
            addCriterion("attaches =", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesNotEqualTo(Byte value) {
            addCriterion("attaches <>", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesGreaterThan(Byte value) {
            addCriterion("attaches >", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesGreaterThanOrEqualTo(Byte value) {
            addCriterion("attaches >=", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesLessThan(Byte value) {
            addCriterion("attaches <", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesLessThanOrEqualTo(Byte value) {
            addCriterion("attaches <=", value, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesIn(List<Byte> values) {
            addCriterion("attaches in", values, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesNotIn(List<Byte> values) {
            addCriterion("attaches not in", values, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesBetween(Byte value1, Byte value2) {
            addCriterion("attaches between", value1, value2, "attaches");
            return (Criteria) this;
        }

        public Criteria andAttachesNotBetween(Byte value1, Byte value2) {
            addCriterion("attaches not between", value1, value2, "attaches");
            return (Criteria) this;
        }

        public Criteria andIshidepostIsNull() {
            addCriterion("isHidePost is null");
            return (Criteria) this;
        }

        public Criteria andIshidepostIsNotNull() {
            addCriterion("isHidePost is not null");
            return (Criteria) this;
        }

        public Criteria andIshidepostEqualTo(String value) {
            addCriterion("isHidePost =", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostNotEqualTo(String value) {
            addCriterion("isHidePost <>", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostGreaterThan(String value) {
            addCriterion("isHidePost >", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostGreaterThanOrEqualTo(String value) {
            addCriterion("isHidePost >=", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostLessThan(String value) {
            addCriterion("isHidePost <", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostLessThanOrEqualTo(String value) {
            addCriterion("isHidePost <=", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostLike(String value) {
            addCriterion("isHidePost like", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostNotLike(String value) {
            addCriterion("isHidePost not like", value, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostIn(List<String> values) {
            addCriterion("isHidePost in", values, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostNotIn(List<String> values) {
            addCriterion("isHidePost not in", values, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostBetween(String value1, String value2) {
            addCriterion("isHidePost between", value1, value2, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIshidepostNotBetween(String value1, String value2) {
            addCriterion("isHidePost not between", value1, value2, "ishidepost");
            return (Criteria) this;
        }

        public Criteria andIsbestIsNull() {
            addCriterion("isBest is null");
            return (Criteria) this;
        }

        public Criteria andIsbestIsNotNull() {
            addCriterion("isBest is not null");
            return (Criteria) this;
        }

        public Criteria andIsbestEqualTo(String value) {
            addCriterion("isBest =", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestNotEqualTo(String value) {
            addCriterion("isBest <>", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestGreaterThan(String value) {
            addCriterion("isBest >", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestGreaterThanOrEqualTo(String value) {
            addCriterion("isBest >=", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestLessThan(String value) {
            addCriterion("isBest <", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestLessThanOrEqualTo(String value) {
            addCriterion("isBest <=", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestLike(String value) {
            addCriterion("isBest like", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestNotLike(String value) {
            addCriterion("isBest not like", value, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestIn(List<String> values) {
            addCriterion("isBest in", values, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestNotIn(List<String> values) {
            addCriterion("isBest not in", values, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestBetween(String value1, String value2) {
            addCriterion("isBest between", value1, value2, "isbest");
            return (Criteria) this;
        }

        public Criteria andIsbestNotBetween(String value1, String value2) {
            addCriterion("isBest not between", value1, value2, "isbest");
            return (Criteria) this;
        }

        public Criteria andStateIsNull() {
            addCriterion("state is null");
            return (Criteria) this;
        }

        public Criteria andStateIsNotNull() {
            addCriterion("state is not null");
            return (Criteria) this;
        }

        public Criteria andStateEqualTo(String value) {
            addCriterion("state =", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotEqualTo(String value) {
            addCriterion("state <>", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThan(String value) {
            addCriterion("state >", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("state >=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThan(String value) {
            addCriterion("state <", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLessThanOrEqualTo(String value) {
            addCriterion("state <=", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateLike(String value) {
            addCriterion("state like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotLike(String value) {
            addCriterion("state not like", value, "state");
            return (Criteria) this;
        }

        public Criteria andStateIn(List<String> values) {
            addCriterion("state in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotIn(List<String> values) {
            addCriterion("state not in", values, "state");
            return (Criteria) this;
        }

        public Criteria andStateBetween(String value1, String value2) {
            addCriterion("state between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andStateNotBetween(String value1, String value2) {
            addCriterion("state not between", value1, value2, "state");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }

        public Criteria andUseridLikeInsensitive(String value) {
            addCriterion("upper(userID) like", value.toUpperCase(), "userid");
            return this;
        }

        public Criteria andRemoteipLikeInsensitive(String value) {
            addCriterion("upper(remoteIP) like", value.toUpperCase(), "remoteip");
            return this;
        }

        public Criteria andTitleLikeInsensitive(String value) {
            addCriterion("upper(title) like", value.toUpperCase(), "title");
            return this;
        }

        public Criteria andIshidepostLikeInsensitive(String value) {
            addCriterion("upper(isHidePost) like", value.toUpperCase(), "ishidepost");
            return this;
        }

        public Criteria andIsbestLikeInsensitive(String value) {
            addCriterion("upper(isBest) like", value.toUpperCase(), "isbest");
            return this;
        }

        public Criteria andStateLikeInsensitive(String value) {
            addCriterion("upper(state) like", value.toUpperCase(), "state");
            return this;
        }
    }
}